package com.itheima.StringBuilder;

import java.sql.SQLOutput;
import java.util.Scanner;

public class Demo1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String str = sc.next();
        StringBuilder sb = new StringBuilder(str);
        sb.reverse();
        String reverseStr = sb.toString();

        if(str.equals(reverseStr)){
            System.out.println("是对称字符串");
        }else {
            System.out.println("不是对称字符串");
        }
    }
}
